package com.wjy.ioc.demo;

import com.wjy.ioc.annotation.Autowired;
import com.wjy.ioc.annotation.Component;

/**
 * @author wjy
 * @date 2020/9/16
 */
@Component
public class Demo3 {

    @Autowired
    private Demo2 demo2;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Demo3{");
        sb.append("demo2=").append(demo2);
        sb.append('}');
        return sb.toString();
    }
}
